import request from '@/utils/request'

// 查询岗位列表
export function listPlace(query) {
  return request({
    url: '/kyhs/place/page',
    method: 'get',
    params:{
      page:query.pageNum,
      pageSize:query.pageSize,
      placeNum:query.placeNum
    }
  })
}

// 查询岗位详细
export function getPlace(Id) {
  return request({
    url: '/kyhs/place/select-by-id',
    method: 'get',
    params:{
      id:Id
    }
  })
}

// 新增岗位
export function addPlace(data) {
  return request({
    url: 'kyhs/place/save-one',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updatePlace(data) {
  return request({
    url: 'kyhs/place/update-one',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delPlace(data) {
  return request({
    url: 'kyhs/place/delete-one',
    method: 'delete',
    data:data
  })
}
